<h1>产品管理 - <span id="secondHeading">增加产品库存</span></h1>
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<form name="stock" action="/product/stock" method="post">
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
      <td nowrap>品名规格</td>
      <td nowrap>导针规格</td>
      <td nowrap>入库数量（kpcs）</td>
      <td nowrap>单价</td>
      <td nowrap>状态</td>
      <td>增加数量（kpcs）</td>
    </tr>
    <input type="hidden" name="id" value="<%=@product.id%>"/>
    <TR id="LIST_TB_CONTENT1">
      <td><%=@product.serial%></td>
      <td><%=@product.name%></td>
      <td><%=@product.total_counts%></td>
      <td><%=@product.sale_price%></td>
      <td><%if @product.state==0%><font color="red">已停用</font><%elsif @product.state==1%><font color="green">正常</font><%end%></td>
      <td><input id="stock_num" name="stock_num" size="30" type="text" value="0"  maxlength="20"/></td>
    </tr>
</table>
<div style="margin-top: 20px; margin-left: 80%;"><input type="submit" value="增加" class="sub">&nbsp;OR&nbsp;<input type="reset" value="重新填写" class="cal"></div>
</form>
